package org.edu.modules.center.entity;

        import com.baomidou.mybatisplus.annotation.IdType;
        import com.baomidou.mybatisplus.annotation.TableId;
        import com.baomidou.mybatisplus.annotation.TableName;
        import io.swagger.annotations.ApiModel;
        import io.swagger.annotations.ApiModelProperty;
        import java.io.Serializable;

@TableName("ve_teach_homework")
@ApiModel(value="ve_teach_homework对象", description="教师发布作业")
public class VeTeachHomework
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键、自动增长")
    private Integer id;
    @ApiModelProperty("教学ID")
    private Integer tcid;
    @ApiModelProperty("章节id")
    private Integer nodeid;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("附件id")
    private Integer fileid;
    @ApiModelProperty("开始时间")
    private Integer starttime;
    @ApiModelProperty("结束时间")
    private Integer endtime;
    @ApiModelProperty("创建时间")
    private Integer createtime;
    @ApiModelProperty("创建人id")
    private Integer createuserid;
    @ApiModelProperty("创建人姓名")
    private String createusername;
    @ApiModelProperty("状态 1为发布 0未发布")
    private Integer status;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("已提交的作业数")
    private Integer submitcount;
    @ApiModelProperty("作业类型，1=线上，2=线下")
    private Integer type;
    @ApiModelProperty("考试id，关联ve_exam的ID")
    private Integer examid;
    @ApiModelProperty("考试选用试卷ID")
    private Integer paperid;
    @ApiModelProperty("总分，离线作业需求填写总分，在线作业读取试卷表总分")
    private Integer totalscores;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeTeachHomework setNodeid(Integer nodeid)
    {
        this.nodeid = nodeid;return this;
    }

    public VeTeachHomework setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeTeachHomework setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeTeachHomework(id=" + getId() + ", tcid=" + getTcid() + ", nodeid=" + getNodeid() + ", title=" + getTitle() + ", content=" + getContent() + ", fileid=" + getFileid() + ", starttime=" + getStarttime() + ", endtime=" + getEndtime() + ", createtime=" + getCreatetime() + ", createuserid=" + getCreateuserid() + ", createusername=" + getCreateusername() + ", status=" + getStatus() + ", terminalid=" + getTerminalid() + ", submitcount=" + getSubmitcount() + ", type=" + getType() + ", examid=" + getExamid() + ", paperid=" + getPaperid() + ", totalscores=" + getTotalscores() + ", placeId=" + getPlaceId() + ")";
    }

    public VeTeachHomework setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeTeachHomework setTotalscores(Integer totalscores)
    {
        this.totalscores = totalscores;return this;
    }

    public VeTeachHomework setPaperid(Integer paperid)
    {
        this.paperid = paperid;return this;
    }

    public VeTeachHomework setExamid(Integer examid)
    {
        this.examid = examid;return this;
    }

    public VeTeachHomework setType(Integer type)
    {
        this.type = type;return this;
    }

    public VeTeachHomework setSubmitcount(Integer submitcount)
    {
        this.submitcount = submitcount;return this;
    }

    public VeTeachHomework setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeTeachHomework setStatus(Integer status)
    {
        this.status = status;return this;
    }

    public VeTeachHomework setCreateusername(String createusername)
    {
        this.createusername = createusername;return this;
    }

    public VeTeachHomework setCreateuserid(Integer createuserid)
    {
        this.createuserid = createuserid;return this;
    }

    public VeTeachHomework setCreatetime(Integer createtime)
    {
        this.createtime = createtime;return this;
    }

    public VeTeachHomework setEndtime(Integer endtime)
    {
        this.endtime = endtime;return this;
    }

    public VeTeachHomework setStarttime(Integer starttime)
    {
        this.starttime = starttime;return this;
    }

    public VeTeachHomework setFileid(Integer fileid)
    {
        this.fileid = fileid;return this;
    }

    public VeTeachHomework setContent(String content)
    {
        this.content = content;return this;
    }

    public VeTeachHomework setTitle(String title)
    {
        this.title = title;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $nodeid = getNodeid();result = result * 59 + ($nodeid == null ? 43 : $nodeid.hashCode());Object $fileid = getFileid();result = result * 59 + ($fileid == null ? 43 : $fileid.hashCode());Object $starttime = getStarttime();result = result * 59 + ($starttime == null ? 43 : $starttime.hashCode());Object $endtime = getEndtime();result = result * 59 + ($endtime == null ? 43 : $endtime.hashCode());Object $createtime = getCreatetime();result = result * 59 + ($createtime == null ? 43 : $createtime.hashCode());Object $createuserid = getCreateuserid();result = result * 59 + ($createuserid == null ? 43 : $createuserid.hashCode());Object $status = getStatus();result = result * 59 + ($status == null ? 43 : $status.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $submitcount = getSubmitcount();result = result * 59 + ($submitcount == null ? 43 : $submitcount.hashCode());Object $type = getType();result = result * 59 + ($type == null ? 43 : $type.hashCode());Object $examid = getExamid();result = result * 59 + ($examid == null ? 43 : $examid.hashCode());Object $paperid = getPaperid();result = result * 59 + ($paperid == null ? 43 : $paperid.hashCode());Object $totalscores = getTotalscores();result = result * 59 + ($totalscores == null ? 43 : $totalscores.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $title = getTitle();result = result * 59 + ($title == null ? 43 : $title.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());Object $createusername = getCreateusername();result = result * 59 + ($createusername == null ? 43 : $createusername.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeTeachHomework;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeTeachHomework)) {
            return false;
        }
        VeTeachHomework other = (VeTeachHomework)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$nodeid = getNodeid();Object other$nodeid = other.getNodeid();
        if (this$nodeid == null ? other$nodeid != null : !this$nodeid.equals(other$nodeid)) {
            return false;
        }
        Object this$fileid = getFileid();Object other$fileid = other.getFileid();
        if (this$fileid == null ? other$fileid != null : !this$fileid.equals(other$fileid)) {
            return false;
        }
        Object this$starttime = getStarttime();Object other$starttime = other.getStarttime();
        if (this$starttime == null ? other$starttime != null : !this$starttime.equals(other$starttime)) {
            return false;
        }
        Object this$endtime = getEndtime();Object other$endtime = other.getEndtime();
        if (this$endtime == null ? other$endtime != null : !this$endtime.equals(other$endtime)) {
            return false;
        }
        Object this$createtime = getCreatetime();Object other$createtime = other.getCreatetime();
        if (this$createtime == null ? other$createtime != null : !this$createtime.equals(other$createtime)) {
            return false;
        }
        Object this$createuserid = getCreateuserid();Object other$createuserid = other.getCreateuserid();
        if (this$createuserid == null ? other$createuserid != null : !this$createuserid.equals(other$createuserid)) {
            return false;
        }
        Object this$status = getStatus();Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$submitcount = getSubmitcount();Object other$submitcount = other.getSubmitcount();
        if (this$submitcount == null ? other$submitcount != null : !this$submitcount.equals(other$submitcount)) {
            return false;
        }
        Object this$type = getType();Object other$type = other.getType();
        if (this$type == null ? other$type != null : !this$type.equals(other$type)) {
            return false;
        }
        Object this$examid = getExamid();Object other$examid = other.getExamid();
        if (this$examid == null ? other$examid != null : !this$examid.equals(other$examid)) {
            return false;
        }
        Object this$paperid = getPaperid();Object other$paperid = other.getPaperid();
        if (this$paperid == null ? other$paperid != null : !this$paperid.equals(other$paperid)) {
            return false;
        }
        Object this$totalscores = getTotalscores();Object other$totalscores = other.getTotalscores();
        if (this$totalscores == null ? other$totalscores != null : !this$totalscores.equals(other$totalscores)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$title = getTitle();Object other$title = other.getTitle();
        if (this$title == null ? other$title != null : !this$title.equals(other$title)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();
        if (this$content == null ? other$content != null : !this$content.equals(other$content)) {
            return false;
        }
        Object this$createusername = getCreateusername();Object other$createusername = other.getCreateusername();return this$createusername == null ? other$createusername == null : this$createusername.equals(other$createusername);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }

    public Integer getNodeid()
    {
        return this.nodeid;
    }

    public String getTitle()
    {
        return this.title;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getFileid()
    {
        return this.fileid;
    }

    public Integer getStarttime()
    {
        return this.starttime;
    }

    public Integer getEndtime()
    {
        return this.endtime;
    }

    public Integer getCreatetime()
    {
        return this.createtime;
    }

    public Integer getCreateuserid()
    {
        return this.createuserid;
    }

    public String getCreateusername()
    {
        return this.createusername;
    }

    public Integer getStatus()
    {
        return this.status;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getSubmitcount()
    {
        return this.submitcount;
    }

    public Integer getType()
    {
        return this.type;
    }

    public Integer getExamid()
    {
        return this.examid;
    }

    public Integer getPaperid()
    {
        return this.paperid;
    }

    public Integer getTotalscores()
    {
        return this.totalscores;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
